<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>JVM堆的转储路径 | ElasticSearch 7.7 权威指南中文版</title>
	<meta name="keywords" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <meta name="description" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <!-- Give IE8 a fighting chance -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
	<link rel="stylesheet" type="text/css" href="../static/styles.css" />
	<script>
	var _link = 'heap-dump-path.html';
    </script>
</head>
<body>
<div class="main-container">
    <section id="content">
        <div class="content-wrapper">
            <section id="guide" lang="zh_cn">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12 col-sm-8 col-md-8 guide-section">
                            <div style="color:gray; word-break: break-all; font-size:12px;">原英文版地址: <a href="https://www.elastic.co/guide/en/elasticsearch/reference/7.7/heap-dump-path.html" rel="nofollow" target="_blank">https://www.elastic.co/guide/en/elasticsearch/reference/7.7/heap-dump-path.html</a>, 原文档版权归 www.elastic.co 所有<br/>本地英文版地址: <a href="../en/heap-dump-path.html" rel="nofollow" target="_blank">../en/heap-dump-path.html</a></div>
                        <!-- start body -->
                  <div class="page_header">
<strong>重要</strong>: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" rel="nofollow">当前版本文档</a>。
</div>
<div id="content">
<div class="breadcrumbs">
<span class="breadcrumb-link"><a href="index.html">Elasticsearch 权威指南 [7.7]</a></span>
»
<span class="breadcrumb-link"><a href="setup.html">安装和设置</a></span>
»
<span class="breadcrumb-link"><a href="important-settings.html">重要的配置</a></span>
»
<span class="breadcrumb-node">JVM堆的转储路径</span>
</div>
<div class="navheader">
<span class="prev">
<a href="heap-size.html">« 设置堆大小</a>
</span>
<span class="next">
<a href="gc-logging.html">垃圾回收日志 »</a>
</span>
</div>
<div class="section">
<div class="titlepage"><div><div>
<h2 class="title">
<a id="heap-dump-path"></a>JVM堆的转储路径 (JVM heap dump path)
</h2>
</div></div></div>
<p>
默认情况下，Elasticsearch 配置 JVM 将内存不足异常的堆转储到默认数据目录(<a class="xref" href="rpm.html" title="Install Elasticsearch with RPM">RPM</a> 和 <a class="xref" href="deb.html" title="Install Elasticsearch with Debian Package">Debian</a> 包发行版下是 <code class="literal">/var/lib/elasticsearch</code>，而 <a class="xref" href="targz.html" title="Install Elasticsearch from archive on Linux or MacOS">tar</a> 和 <a class="xref" href="zip-windows.html" title="Install Elasticsearch with .zip on Windows">zip</a> 归档发行版下是elasticsearch安装根目录下的<code class="literal">data</code>目录)。
如果这个路径不适合接收堆转储，应该修改<a class="xref" href="jvm-options.html" title="Setting JVM options"><code class="literal">jvm.options</code></a> 中的 <code class="literal">-XX:HeapDumpPath=...</code> 条目。
如果指定一个目录，JVM 将根据正在运行的实例的 PID 为堆转储生成一个文件名。
如果指定的是固定的文件名而不是目录，当 JVM 需要对内存不足异常执行堆转储时，该文件不能存在，否则堆转储将失败。
</p>
</div>
<div class="navfooter">
<span class="prev">
<a href="heap-size.html">« 设置堆大小</a>
</span>
<span class="next">
<a href="gc-logging.html">垃圾回收日志 »</a>
</span>
</div>
</div>

                  <!-- end body -->
                        </div>
                        <div class="col-xs-12 col-sm-4 col-md-4" id="right_col">
                        
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </section>
</div>
<script src="../static/cn.js"></script>
</body>
</html>